﻿<Window x:Class="Fluffy.Viewes.AboutView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:viewes="clr-namespace:Fluffy.Viewes"
        WindowStartupLocation="CenterScreen" Background="{x:Static SystemColors.ControlBrush}"
        Title="About" SizeToContent="WidthAndHeight" WindowStyle="ToolWindow" ResizeMode="NoResize">
    
    <Window.DataContext>
        <viewes:AboutViewModel/>
    </Window.DataContext>
    
    <Grid Margin="5">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        <Image Grid.Row="0" Grid.Column="0" Source="../app.ico"/>
        
        <StackPanel Grid.Row="0" Grid.RowSpan="2" Grid.Column="1" Grid.ColumnSpan="2" Orientation="Vertical">
            <TextBlock Text="{Binding Version, StringFormat=Fluffy {0}}" FontSize="20" TextAlignment="Center"/>
            <TextBlock Text="{Binding AssemblyCopyright}" TextAlignment="Left"/>
            <TextBlock Text="Developed by Andrey Davidchyk" TextAlignment="Left"/>
            <TextBlock TextAlignment="Left">
                WebSite: <Hyperlink Command="{Binding WebsiteCommand}">http://fluffy.codeplex.com/</Hyperlink>
            </TextBlock>
        </StackPanel>
        
        <Button Grid.Column="2" Grid.Row="2" IsCancel="True" Content="Close" MinWidth="75" Margin="5,5,0,0"/>
        
    </Grid>
</Window>
